<html>

<head>
  <title>测试swf</title>
  <style>
    html,
    body {
      margin: 0;
      padding: 0
    }
  </style>
</head>

<body>
  <div>
    <object></object>
  </div>
  <script src="http://f2e.yy.com/s/lib/jquery/jquery1.8.3.min.js"></script>
  <script>
    function getQueryString(name) {
      var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
      var r = window.location.search.substr(1).match(reg);
      if (r != null) {
        return decodeURIComponent(r[2]);
      }
      return null;
    }

    var $object = $('object')
    $object.html(`<embed id="swf" src="${ getQueryString('swf')||'test.swf'}" quality="high" width="${getQueryString('width')||500}" height="${getQueryString('height')||500}" wmode="transparent" align="middle">`)
  </script>
</body>

</html>